<h2 style="text-align:center"><strong><a href="#"><%= @tag.nil? ? "" : @tag.name %></a></strong></h2>

<div class="clear"></div>


<!-- 开始回帖 -->
<% 
  background = 1 
%>
<% @posts.each do |post| %>
	<% background == 2 ? background = 1 : background = 2 %>
  <div class="<%= "post bg#{background}" %>">
    <div class="inner"><span class="corners-top"><span></span></span>

      		<div class="postbody">
          	<h3>
          		<%= image_tag "icons/post.gif" %><%= link_to post.title,:action => "show",:id => post.id %>
        		</h3> 
				    	<p class="author">
              	<a href="#"><img src="/images/icon_post_target.gif" alt="Post" title="Post" width="11" height="9"/></a>
              		&nbsp;<%= post.created_at.to_s(:cn_time) %>
              	</p>
              	<a name="posts_<%= post.id %>"></a>
              	<div class="content">
                  <%= post.html_content %>
              	</div>
              	<!-- 签名显示 -->
              	<div class="signature">
                	<%= "" %>
              	</div>
      			</div>

      		<div class="back2top"><a class="top" href="#wrap">回顶</a></div>
        <span class="corners-bottom"><span></span></span></div>
              </div> 
              <hr class="divider"/>
            <% end %>
            <%= render :partial => "shared/pagination",:locals => { :type => "reply",:post => @tp,:to_pagination => @posts,:show_redirect => true} %>
            <!-- 结束回帖 -->	

            <p></p>

<script type="text/javascript"><!--
google_ad_client = "pub-5482241977177867";
/* 760x250, 创建于 10-6-23 */
google_ad_slot = "7760706145";
google_ad_width = 750;
google_ad_height = 100;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
